package com.china08.yxyapi.entity.db.sws;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 模版
 * 
 * @author 王慧超
 * 
 */
@Entity
@Table(name = "sws_templet", catalog = "yxy_sws")
public class SwsTemplet extends BaseEntityNoId {

	private static final long serialVersionUID = -3591045310843550193L;

	/** 模版id , 自定义 id，和前台模版的文件夹目录同名 */
	@Id
	@Column(name = "id")
	private String id;

	/** 模版名称 */
	@Column(name = "name")
	private String name;

	/** 类型 00：平台型 */
	@Column(name = "type")
	private String type;

	@Column(name = "templet_image", length = 255, columnDefinition = "VARCHAR(255) COMMENT '模版缩略图'")
	private String templetImage;

	/**
	 * 模版分类 : 00：名校类
	 */
	@Column(name = "sort", columnDefinition = "varchar(255) comment '模版类型：00:名校类'")
	private String sort;

	/** 排序字段 */
	@Column(name = "order_num", columnDefinition = "int(1) DEFAULT 100 COMMENT '排序字段'", nullable = true)
	private Integer orderNum = 100;

	/**
	 * 状态
	 */
	@Column(name = "status", columnDefinition = "int(1) DEFAULT 1 COMMENT '状态 0--无效 1--有效'", nullable = false)
	private Integer status = 1;

	@Column(columnDefinition = "int(1) default 0 comment '是否vip,0--免费模版,1--vip模版(收费)' ")
	private Integer isVip;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTempletImage() {
		return templetImage;
	}

	public void setTempletImage(String templetImage) {
		this.templetImage = templetImage;
	}

	public Integer getIsVip() {
		return isVip;
	}

	public void setIsVip(Integer isVip) {
		this.isVip = isVip;
	}

}
